/**
 * Created by waterworld on 17-4-8.
 * 离线是否自动托管 做成配置 1 自动托管，离线后自动打牌 0 离线后一直等待，等待离线人员上线继续游戏或者解散
 */
var  iconst={
    serverVersion:'v1012',
    maxRoom:50000,
    maxNiuniuClubRecord:100,
    clubRoomList:'clubRoomList',
    maxOptCount:15,//最大跟注，加注数码
    buySmallBet:4,
    zjhCardRequire:1,
    maxBiMengCount:2,
    zjh_initBet:0,
    url_gameD89:'ws://weixin.g9527.com:4016',
    url_gameNiuniu:'ws://weixin.g9527.com:4017',
    url_gameDdz:'ws://weixin.g9527.com:4018',
    url_gameD89:'ws://game.90000vr.com:4016',

    url_gameNiuniu:'ws://127.0.0.1:4017',
    url_gameDdz:'ws://gameting.8006386.com:4018',
    url_gamePaijiu:'ws://game.90000vr.com:4019',
    url_gameDaPaijiu:'ws://game.90000vr.com:4020',
    url_gameshewawa:'ws://weixin.g9527.com:4021',
    ///url_check_sytx:'http://sytx.90000vr.com/?action=server',
    url_check_sytx:'http://sytx.0859qp.com/?action=server',
    url_check_sytx_5z:'http://sytx.qibingwang.com/?action=5zsyserver',
    url_check_sytx_dhsy:'http://sytx.qibingwang.com/?action=dhsyserver',
    url_coin_qzniuiniu:"ws://127.0.0.1:3015",
    url_zjh_qzniuiniu:"ws://127.0.0.1:3016",
    serverSecret:"readyGo",
    chatType:
    {voice:'voice',
     text:'text',
     emoji:'emoji',
    },
    netEvent:{
        game13Cards:'onGame',
        enter:'enter',
        exit:'exit',
        newGame:'newGame',
        connectGame:'connectGame',
        updateTable:'updateTable',
        updateSelf:'updateSelf',
        countDown:'countDown',
        showCards:'showCards',
        exchangeCard:'exchangeCard',
        enterRoom:'enterRoom',
        reEnter:'reEnter',
        createRoom:'createRoom',
        destroyRoom:'destroyRoom',
        error:'error',
        info:'info',
        queryUsers:'queryUsers',
        chooseType:'chooseType',
        waitGameStart:'waitGameStart',
        waitGameEndConfirm:'waitGameEndConfirm',
        userGetReady:'userGetReady',
        chooseSpecialCards:'chooseSpecialCards',
        gameDiscards:'gameDiscards',
        userRechargeNotify:'userRechargeNotify',
        userChat:'userChat',
        gameOver:'gameOver',
        bipai:'bipai',//比牌
        follow:'follow',//跟注
        seeCard:'seeCard',//看牌
        showCard:'showCard',//所有玩家看牌
        giveup:'giveup',//弃牌
        addBet:'addBet',//加注
        startGame:'startGame',
        releaseDlg:'releaseDlg',
        regInvite:'regInvite',
        showGameResult:'showGameResult',
        showPeaceResult:'showPeaceResult',
        buySmall:'buySmall',
        voiceChat:'voiceChat',
        keepAlive:'keepAlive',
    },
    code:{OK:200,
    error:500,},
    zjhTimeout:
    {
        waitPlayerOpt:10,//等待玩家操作超时
        waitStartEnd:5,
        onIdle:2,
        waitNextGameStart:10,
        waitAgreeGame:90,//第一句游戏开始前的确认
        showVsAnim:3,
        showGameResult:1,//默认一秒出小结算
        waitOfflinePlayer:90,//等待掉线玩家90秒,90秒后算自动弃牌
        aliveTimeout:4,//4秒钟
        waitBuySmall:10,//
    },
    timeout:{
        gameIdle:2,
        waitGameStart:5,
        waitGameStartOk:100000000,//无限等待房主确认游戏开始
        waitGameEnd:60,//默认理牌时间 30,60,120
        minWaitGameEnd:30,
        maxWaitGameEnd:120,
        waitNextGame:5,
        roomExitTime:120000000000,//10分钟没有人在房间自动删除,无限等待
        waitPlayerStart:5,//第一次进入游戏，所有玩家需要手动确认开始
        waitPlayerEnd:10,//每一局游戏结束之后要求玩家确认之后才开始游戏,
        gameDiscards:3,//播放发牌演示动画
    },
    maxPlayers:6,
    chooseSpecialType:1,//是否选择特殊牌型
    autoPlay:0,
    defGameType:'炸金花',
    defRoomCardCount:10,
    minGameCount:10,
    maxGameCount:40,
   // gameHistoryName:'wegame_history',
    gameHistoryName:'game_history',
    friendMap:"friendMap",
    gameHistorySytx:'game_history_sytx',
    userRoomInfo:'user_room_info',
    gameHost:'gameHost',
    wechatCacheMap:'weixinCache',
    wxCodeCacheMap:'wxCodeCacheMap',
    wxJsapi_ticket:'jsapi_ticketMap',
    wxApiAccessTokenMap:'apiAccessTokenMap',
    xsmj_roomMap:'xsmj_roomMap',
    gameCardsPerTurn:[{gameCount:10,cards:1},{gameCount:25,cards:2},{gameCount:40,cards:3}],

};

module.exports=iconst;